use std::{fs};

fn main() {
    let file_path = "rust-io/poem.txt";

    let content = read_file(file_path);

    println!("read file content is :\n {content}")
}

fn read_file(path: &str) -> String {
    fs::read_to_string(path).expect("read file error")
}
